class Date{
    public int year;
    public int month;
    public int day;

    public Date(){
        this(2022,3,4);
        System.out.println();
    }
    public Date(int year,int month,int day){

        this.year = year;
        this.month = month;
        this.day = day;
        System.out.println("调用了3个参数的构造方法！");
    }

    public void setDay(Date this,int y,int m, int d){
        year = y;
        month = m;
        day = d;
    }
    public void printDate(Date this){
        System.out.println("年："+year+"月："+month+"日："+day);
    }
}

public class TestUtil {
    public static void main(String[] args) {
        Date date4 = new Date();
        date4.printDate();

        Date date1 = new Date(2022,11,1);
       date1.setDay(2022,11,14);
        date1.printDate();

        Date date2 = new Date(2022,11,5);
        date2.setDay(2022,11,15);
        date2.printDate();

        Date date3 = new Date(2022,11,7);
        date3.setDay(2022,11,13);
        date3 .printDate() ;
    }
}
